/******************************************************************************
* File description: experimentmethodui.cpp
* Function: 基本实验-扩增程序
* Current Version: 1.0.0
* Author: 张宇轩
* Date: 2024-09-02
*  -----
*  Copyright by 博坤生物 .
 *****************************************************************************/
#include "experimentmethodui.h"

ExperimentMethodUI::ExperimentMethodUI() {
    // 初始化
    this->setResizeMode(QQuickWidget::SizeRootObjectToView);
    this->setSource(QUrl("qrc:/experimentmethod.qml"));
    rootObj = this->getRootObject();
    if(rootObj){
    }
}

ExperimentMethodUI::~ExperimentMethodUI() {}

/**
 * @brief getContext 获取qmlcontext
 * @return qmlContext
 */
QQmlContext* ExperimentMethodUI::getContext() const
{
    return this->rootContext();
}

/**
 * @brief getRootObject 获取rootObject
 * @return rootObject
 */
QObject* ExperimentMethodUI::getRootObject() const
{
    return (QObject*)this->rootObject();
}


